﻿document.write('<link href="/js/layui/css/layui.css" rel="stylesheet" type="text/css" />');
document.write('<script src="/js/jquery.js" type="text/javascript"></script>');
document.write('<script src="/js/layui/layui.js" type="text/javascript"></script>');

document.write('<link href="/css/CMSView.css" rel="stylesheet" type="text/css" />');

/**
 * 获取URL中参数
 * @param {any} name
 */
function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg);  //匹配目标参数
    if (r != null) return decodeURI(r[2]); return null; //返回参数值
}